-
Notifications
You must be signed in to change notification settings - Fork 179
hotplug_gpu: updated since hotunplug is not supported for NVIDIA GPUs #6613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughRemoved NVIDIA GPU hot-unplug/replug validation from the hotplug GPU test. The test now performs hotplug, driver validation, and final exclusivity checks only. Documentation/log text updated to reflect lack of hot-unplug support. Unused import removed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant T as Test Runner
participant L as libvirt/Host
participant G as Guest VM
participant D as NVIDIA Driver
rect rgb(235, 245, 255)
note over T,L: Current flow (hotplug-only)
T->>L: Attach GPU (hostdev) to VM
L-->>G: Device appears in guest
T->>G: Validate via nvidia-smi / driver presence
T->>L: Final exclusivity check
end
sequenceDiagram
autonumber
participant T as Test Runner
participant L as libvirt/Host
participant G as Guest VM
participant D as NVIDIA Driver
rect rgb(255, 240, 240)
note over T,L: Removed flow (unplug/replug)
T->>L: Detach GPU (hostdev) from VM
L-->>G: Device removed event
T-x G: (Removed) Validate device absence
T-x L: (Removed) Re-attach GPU and re-validate
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Comment |
0ada0bf to
835a3e8
Compare
| gpu_test.nvidia_smi_check(vm_session) | ||
|
|
||
| test.log.info("TEST_STEP: Check gpu device exclusivity") | ||
| res = virsh.attach_device(vm.name, gpu_dev.xml, debug=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The device will be hotplugged in Line 29, these lines can be removed I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this to align with the polarion case VIRT-304169: "Install gpu driver and run nvidia-smi in guest; nvidia-smi -q returns correct info." I did edit the case to remove hotunplug parts but this step was right before the hotunplug parts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for the explanation!
Signed-off-by: Julia Graham <[email protected]>
835a3e8 to
3503b5c
Compare
Marked as a draft while waiting for patches that will allow these changes to be tested.
Summary by CodeRabbit
Tests
Documentation